export function isLogin(){
    return !!JSON.parse(localStorage.getItem('user') || '{}')?.id
}

export function isCurrentUser(id){
    return JSON.parse(localStorage.getItem('user') || '{}')?.id === id
}

export function getUser(){
    return JSON.parse(localStorage.getItem('user') || '{}')
}